﻿Echo Off
Echo Executing Scripts

Echo Starting ...

for /r %~dp0 %%X in (*.SQL) do (
	Echo Executing %%X
	"C:\Program Files\Microsoft SQL Server\90\Tools\binn\sqlcmd" -S %1 -d %2 -U %3 -P %4 -b -i %%X	
)

EXIT ERRORLEVEL
Echo Execution Completed


